package org.ala.rpc_test.grpc;

import org.ala.rpc_test.grpc.OrderServiceImplGrpc.OrderServiceImplBlockingStub;

/**
 *
 *	@author ala
 *	@date 2025年4月23日
 */
public class OrderClientImpl {

	protected OrderServiceImplBlockingStub stub;
	public OrderClientImpl(OrderServiceImplBlockingStub stub) {
		this.stub = stub;
	}
	
	public OrderItemDO order(long id) {
		OrderDO order = OrderDO.newBuilder().setId(id).build();
		return stub.order(order);
	}
}
